home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / auror300.zip / BRMENU.AML < prev    next >
Text File  |  1996-07-17  |  17KB  |  447 lines

  1. //--------------------------------------------------------------------
  2. // The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
  3. //
  4. // MENU.AML
  5. // Brief Menu definitions (included by Main.aml)
  6. //
  7. // If you have made any changes, save this file and select Recompile
  8. // the Editor from the Set menu. Exit and re-enter the editor for
  9. // your changes to take effect.
  10. //--------------------------------------------------------------------
  11.  
  12. //--------------------------------------------------------------------
  13. // Edit Window menu bar and tool bar
  14. //--------------------------------------------------------------------
  15.  
  16. function  EditMen
  17.  
  18.   // menu bar
  19.   menubar "" 1
  20.     item "&File"     "editFile"
  21.     item "&Window"   "editWindow"
  22.     item "&Block"    "editBlock"
  23.     item "&Search"   "editSearch"
  24.     item "F&old"     "editFold"
  25.     item "&Edit"     "editEdit"
  26.     item "&Clip"     "editClip"
  27.     item "&Print"    "editPrint"
  28.     item "Se&t"      "editSet"
  29.     item "M&acro"    "editMacro"
  30.     item "&Help"     "editHelp"
  31.   end
  32.  
  33.   // tool bar
  34.   menubar "" 2
  35.     item "<&&≡>"     toolbar                 // close tool bar
  36.     item "<&&?>"     quickref 'u' 'f'        // users guide
  37.     item "<&&*>"     open "*.*"              // display file manager
  38.     item "<&&/>"     copywin                 // copy window
  39.     item "<&&─>"     splitwin 'h'            // split window horz
  40.     item "<&&|>"     splitwin 'v'            // split window vert
  41.     item "<&&o>"     askopen                 // open prompt
  42.     item "<&&s>"     save                    // save file
  43.     item "<&&F>"     askfind                 // find prompt
  44.     item "<&&f>"     findlast                // do last find/replace
  45.     item "<&&r>"     formatblock2            // reformat block
  46.     item "<&&«>"     undo                    // undo last change
  47.     item "<&&»>"     redo                    // redo last change
  48.     item "<&&>>"     foldblock2              // fold block
  49.     item "<&&<>"     destroyfold2            // destroyfold
  50.   end
  51. end
  52.  
  53.  
  54. //--------------------------------------------------------------------
  55. // Edit Window pulldown menus
  56. //--------------------------------------------------------------------
  57.  
  58. menu  "editFile"
  59.   item " &New                  <ctrl n>"  opennew
  60.   item " &Open..                <alt e>"  askopen
  61.   item " Open &Binary.."                  askopenb
  62.   item " Open and &Insert..     <alt r>"  askinsert
  63.   //item " Open Last&..           <alt z>"  openlast
  64.   item " &Rename..              <alt o>"  askname
  65.   item " &Save"                           save
  66.   item " Sa&ve As.."                      asksaveas
  67.   item "-"
  68.   item " &File Manager.."                 open "*.*"
  69.   item " &Tree.."                         runmacro2 "tree"
  70.   item " Ne&xt                  <alt n>"  nextfile
  71.   item " &Prev                  <alt ->"  prevfile
  72.   item " &List..                <alt b>"  filelist
  73.   item "─"
  74.   item " &Close                <ctrl ->"  close
  75.   item " Close &All             <alt x>"  closeall
  76.   item " Sav&e and Close"                 close 's'
  77.   item " Save an&d Close All   <ctrl x>"  closeall 's'
  78.   item "─"
  79.   item " Abo&ut.."                        about
  80. end
  81.  
  82.  
  83. menu  "editWindow"
  84.   item " &Restore"                       restore
  85.   item " &Move/Size              <f2>"   sizekey
  86.   item " P&an               <ctrl f2>"   pankey
  87.   item " M&inimize"                      minimize
  88.   item " Ma&ximize           <ctrl z>"   maximize
  89.   item " &Next               <ctrl a>"   nextwindow
  90.   item " &Prev"                          prevwindow
  91.   item " &List..                 <f1>"   winlist
  92.   item "─"
  93.   item " &Copy            <ctrl o><w>"   copywin
  94.   item " Split Hor&z"                    splitwin 'h'
  95.   item " Split Ver&t"                    splitwin 'v'
  96.   item "─"
  97.   item " Ca&scade          <shift f5>"   cascade
  98.   item " Tile &Horz        <shift f4>"   tile 'h'
  99.   item " Tile &Vert        <shift f3>"   tile 'v'
  100.   item "─"
  101.   item " Tool &Bar          <ctrl f8>"   toolbar
  102.   item " Pr&ompt Style.."                runcfg "prom"
  103. end
  104.  
  105. menu  "editMark"
  106.   item " Mark &Line         <alt l>"   markline
  107.   item " Mark &Column       <alt c>"   markcolumn
  108.   item " Mark C&haracter    <alt a>"   markchar
  109.   item " Mark &Word"                   markword
  110.   item " Mark to &EOL"                 markeol
  111.   item " Mark &Paragraph"              markpara "tb"
  112.   item "─"
  113.   item " &Unmark"                      destroymark
  114. end
  115.  
  116. menu  "editBlock"
  117.   item " Mar&k..                    "    submenu "editMark"
  118.   item " &Copy"                           copyblock2
  119.   item " &Move"                           moveblock2
  120.   item " Copy &Over"                      copyblockover
  121.   item " Mo&ve Over"                      moveblockover
  122.   item " &Delete          <ctrl o><d>"    deleteblock2
  123.   item " &Indent           <shift f8>"    shiftblock  1
  124.   item " UnInden&t         <shift f7>"    shiftblock -1
  125.   item "─"
  126.   item " &Fill            <ctrl o><f>"    fillblock2
  127.   item " S&ave..              <alt w>"    saveblock2
  128.   item " &Sort            <ctrl o><s>"    sortblock2
  129.   item " Lo&wercase"                      caseblock 'l'
  130.   item " U&ppercase       <ctrl o><u>"    caseblock
  131.   item "─"
  132.   item " Ce&nter          <ctrl o><c>"    justblock2 'c'
  133.   item " &Left Justify"                   justblock2 'l'
  134.   item " Ri&ght Justify"                  justblock2 'r'
  135.   item " &Reformat        <ctrl o><r>"    formatblock2
  136.   item " R&eformat Right      <alt y>"    formatblock2 "rj"
  137. end
  138.  
  139. // brief-style find/replace
  140. forward findbr
  141. forward togglecase
  142. forward toggleregx
  143. forward gotoroutine
  144.  
  145. menu  "editSearch"
  146.   item " &Search..            <alt s> or <f5>"   findbr
  147.   item " Search &Backward..          <alt f5>"   findbr '' 'r'
  148.   item " Search &Again             <shift f5>"   findlast
  149.   item " &Translate..         <alt t> or <f6>"   findbr 't'
  150.   item " Translate Back&ward..       <alt f6>"   findbr 't' 'r'
  151.   item " Translate Agai&n          <shift f6>"   search2 (gethiststr "_repl")
  152.   item " &Case Sensitive Toggle     <ctrl f5>"   togglecase
  153.   item " Reg E&xpression Toggle     <ctrl f6>"   toggleregx
  154.   item "-"
  155.   item " Scan &Files..               <ctrl s>"   askscan
  156.   item " &Incremental Search         <ctrl i>"   isearch
  157.   item " Find &Occurrences..         <ctrl h>"   askfindo
  158.   item " Goto Ro&utine               <ctrl g>"   gotoroutine
  159.   item "─"
  160.   item " &Place Bookmark.."                      placebook
  161.   item " &Go to Bookmark.."                      askbook
  162.   item " Go to &Line..                <alt g>"   askrow
  163.   item " Go to Bloc&k Start"                     gotomark 't'
  164.   item " Find &Matching Char         <ctrl [>"   gotomatch2
  165.   item " Go to Compiler &Error"                  gotoerror
  166. end
  167.  
  168. menu  "editFold"
  169.   item " &Fold Next Line"                     foldline
  170.   item " &Unfold Next Line"                   foldline 'u'
  171.   item "─"
  172.   item " Crea&te Fold"                        createfold
  173.   item " &Open Fold               <alt \\>"   openfold
  174.   item " &Close Fold              <alt \\>"   closefold
  175.   item " &Remove Fold"                        destroyfold2
  176.   item "─"
  177.   item " Fold Bloc&k"                         foldblock2
  178.   item " Fold Block Fl&at"                    foldflat
  179.   item " O&pen Block Folds"                   foldblock 'os'
  180.   item " C&lose Block Folds"                  foldblock 'cs'
  181.   item " Re&move Block Folds"                 foldblock 'ds'
  182.   item "─"
  183.   item " Ope&n All Folds          <alt [>"    foldall 'os'
  184.   item " Clo&se All Folds         <alt ]>"    foldall 'cs'
  185.   item " Remo&ve All Folds        <alt 0>"    foldall 'ds'
  186.   item "─"
  187.   item " &Export without Folds.."             asksaveas 'x'
  188.   item " E&xport Block without Folds.."       saveblock2 'x'
  189. end
  190.  
  191. menu  "editEdit"
  192.   item " &Undo                    <alt u>"   undo
  193.   item " &Redo                   <ctrl u>"   redo
  194.   item "─"
  195.   item " &Insert Line        <ctrl enter>"   insline2
  196.   item " &Delete Line             <alt d>"   delline
  197.   item " &Join Line"                         joinline
  198.   item " &Sp